<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('增加通讯录')" />
<!--	<th:block th:include="include :: summernote-css" />-->
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-notice-add">
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">姓名：</label>
			<div class="col-sm-10">
				<input id="name" name="name" class="form-control" placeholder="姓名" type="text" required>
			</div>
		</div>
<!--		<div class="form-group">-->
<!--			<label class="col-sm-4 control-label is-required">归属部门：</label>-->
<!--			<div class="col-sm-8">-->
<!--				<div class="input-group">-->
<!--					<input name="deptName" onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择归属部门" class="form-control" required>-->
<!--					<span class="input-group-addon"><i class="fa fa-search"></i></span>-->
<!--				</div>-->
<!--			</div>-->
<!--		</div>-->
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">手机号：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="mobile" placeholder="手机号" name="mobile" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">排序：</label>
			<div class="col-sm-10">
				<input id="orderNum" name="orderNum" class="form-control"  placeholder="排序"type="text" required>
			</div>
		</div>

	</form>
</div>
<th:block th:include="include :: footer" />
<!--<th:block th:include="include :: summernote-js" />-->
<script type="text/javascript">
    var prefix = ctx + "address/book";

    $("#form-notice-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
        }
    }
	/*用户管理-新增-选择部门树*/
	function selectDeptTree() {
		var treeId = $("#treeId").val();
		var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
		var url = ctx + "system/dept/selectDeptTree/" + deptId;
		var options = {
			title: '选择部门',
			width: "380",
			url: url,
			callBack: doSubmit
		};
		$.modal.openOptions(options);
	}
</script>
</body>
</html>
